package com.ioc.business.order.controller;

import com.ioc.business.order.domain.bo.delivery.data.board.DeliveryDataBoardQueryBo;
import com.ioc.business.order.service.IDeliveryDataBoardService;
import com.ioc.business.order.vo.delivery.data.board.DeliveryDataBoardPageVo;
import com.ioc.common.core.controller.BaseController;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/data-Board/delivery-order")
@AllArgsConstructor
public class DeliveryDataBoardController extends BaseController {

    private final IDeliveryDataBoardService deliveryDataBoardService;

    /**
     * 分页查询发货订单数据看板列表
     *
     * @param queryBo
     * @return
     * @folder 发货订单数据看板/分页查询发货订单数据看板列表
     */
    @GetMapping("/list")
    public DeliveryDataBoardPageVo selectDeliveryOrderPageList(DeliveryDataBoardQueryBo queryBo) {
        startPage();
        return deliveryDataBoardService.selectDeliveryDataBoardPageList(queryBo);
    }
}
